<?php
namespace haibao\cms\model\data;

class FeaturePublish extends Base{
	
	const STATUS_DISABLE = 0;
	const STATUS_ENABLE = 1;
	const STATUS_NOT_PUBLISH = 1;
	const STATUS_PUBLISH = 2;
	
	const CLASS_FASHION = 1;
	const CLASS_PAINT = 2;
	const CLASS_STAR = 3;
	const CLASS_FASHION_WEEK = 4;
	const CLASS_BRAND = 5;
	const CLASS_DESIGNER = 6;
	const CLASS_BRAND_TOP = 7;
	const CLASS_OTHER = 8;
	const CLASS_ZHIBO = 9;
	const CLASS_BRAND_DINGZHI = 10;
	
	const COLUMN_EVALUTE = 1;
	const COLUMN_FASHION_ARCHIVE = 2;
	const COLUMN_PERFECT_ADVICE = 3;
	const COLUMN_NEW_PRODUCT = 4;
	
	const IS_LIST_ENABLE = 1;
	const IS_LIST_DISABLE = 0;
	
	const IS_H5 = 1;
	const IS_NOT_H5 =0;
	
	const SHARE_TYPE_SINA_WEIBO = 'sinaWeibo';
	const SHARE_TYPE_QQ_WEIBO = 'qqWeibo';
	const SHARE_TYPE_QQ_ZONE = 'qqZone';
	const SHARE_TYPE_WEIXIN = 'weixin';
	const SHARE_TYPE_RENREN = 'renren';
	
	
	public $FeatureDefineId = 0;
	
	/**
	 * 专题名称
	 */
	public $FeatureName = '';
	/**
	 * 系列id
	 */
	public $SerialId = 0;
	/**
	 * 期号
	 */
	public $Issue = '';
	/**
	 * 专题地址
	 */
	public $Url = '';
	/**
	 * 描述
	 */
	public $Description = '';
	/**
	 * 关键词
	 */
	public $Keywords = '';
	/**
	 * 预览图
	 */
	public $PictureId = '';
	/**
	 * 投票开始时间
	 */
	public $VoteStartTime = '';
	/**
	 * 投票截止时间
	 */
	public $VoteEndTime = '';
	/**
	 * 评论截取开始时间
	 */
	public $CommentStartTime = '';
	/**
	 * 评论截取结束时间
	 */
	public $CommentEndTime = '';
	/**
	 * 发布时间
	 */
	public $PublishTime = '';
	/**
	 * 发布人
	 */
	public $PublishBy = 0;
	/**
	 * 更新时间
	 */
	public $UpdateTime = '';
	/**
	 * 更新人
	 */
	public $UpdateBy;
	/**
	 * 状态
	 */
	public $Status = self::STATUS_DISABLE;
	/**
	 * 展示时间
	 */
	public $ListTime = '';
	/**
	 * 文件Id，已弃用
	 */
	public $FileId;
	/**
	 * zip文件名称
	 */
	public $ZipFileName;
	/**
	 * 创建时间
	 */
	public $CreateTime = '';
	/**
	 * 创建人
	 */
	public $CreateBy;
	/**
	 * 点击数
	 */
	public $Clicks = 0;
	/**
	 * 是否H5专题
	 */
	public $IsH5 = self::IS_NOT_H5;
	
	/**
	 *  专题分类Id
	 */
	public $ClassId = 0;
	/**
	 * 栏目Id
	 */
	public $ColumnId = 0;
	/**
	 * 读取留言标签
	 */
	public $CommentTag = '';
	/**
	 * svn地址
	 */
	public $SvnAddress = '';
	/**
	 * 是否展示
	 */
	public $IsList = 0;
	
	public $SinaShareCount = 0;
	public $QQWeiboShareCount = 0;
	public $QQZoneShareCount = 0;
	public $RenrenShareCount = 0;
	public $WeixinShareCount = 0;
	public $CommentCount = 0;
	public $PvCount = 0;
	public $ShowPvCount = 0;
	public $CommentPariseNum = 0;
	
	public $Tags;
	public $Events;
	public $Serial;
	public $Publish;
	public $Image;
	public $Pic;//老表使用
	public $Title;//老表使用
	
	public $Ini;
	
	/**
	 * 访问URL
	 */
	public $AccessUrl;
	
	/**
	 * public title
	 */
	public $PublicTitle;
	
	public $Params;
	
	public $Statistic;
	
	public $HighLightFeatureName;
	public $HighLightDescription;
	
	public $FeatureDefine;
	
	public $ContentType;
	public $OtherFeatureId;
	
	public $IsUrlEdit = false;
	
	public $QuestionCount;
	
	public $QuestionPariseCount;
	
	public function __construct(){
		parent::__construct();
		$this->stringField('FeatureDefineId', 'FeatureDefineId',false);
		$this->stringField('FeatureName','FeatureName',false);
		$this->intField('SerialId', 'SerialId',true);
		$this->stringfield('Issue', 'Issue',true);
		$this->stringField('Url', 'Url',true);
		$this->stringField('Description', 'Description',true);
		$this->stringField('Keywords', 'keywords',true,'');
		$this->stringField('PictureId', 'PictureId',true);
		$this->dateField('VoteStartTime','VoteStartTime' ,true);
		$this->dateField('VoteEndTime', 'VoteEndTime',true);
		$this->dateField('CommentStartTime', 'CommentStartTime',true);
		$this->dateField('CommentEndTime', 'CommentEndTime',true);
		$this->dateField('PublishTime', 'PublishTime',true);
		$this->intField('PublishBy', 'PublishBy',true);
		$this->dateField('UpdateTime', 'UpdateTime',true);
		$this->intField('UpdateBy', 'UpdateBy',true);
		$this->intField('Status', 'Status',true);
		$this->dateField('ListTime', 'ListTime',true);
		$this->stringField('FileId', 'FileId',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->intField('IsH5', 'IsH5',true);
		$this->intField('ClassId', 'ClassId',true);
		$this->intField('ColumnId', 'ColumnId',true);
		$this->stringField('CommentTag', 'CommentTag',true);
		$this->stringField('SvnAddress','SvnAddress',true);
		$this->intField('IsList','IsList',true);
		$this->stringField('ZipFileName','ZipFileName',false);
		
		$this->intField('SinaShareCount','SinaShareCount',true);
		$this->intField('QQWeiboShareCount','QQWeiboShareCount',true);
		$this->intField('QQZoneShareCount','QQZoneShareCount',true);
		$this->intField('RenrenShareCount','RenrenShareCount',true);
		$this->intField('WeixinShareCount','WeixinShareCount',true);
		$this->intField('CommentCount','CommentCount',true);
		$this->intField('PvCount','PvCount',true);
		$this->intField('ShowPvCount','ShowPvCount',true);
		$this->intField('CommentPariseNum','CommentPariseNum');
		
		$this->intField('QuestionCount','QuestionCount');
		$this->intField('QuestionPariseCount','QuestionPariseCount');
		
		$this->setTableName('FeaturePublish');
	}
	
}